// @APIVersion 1.1.2
// @Title API test project
// @Description 分布式API测试项目
// @Contact pingxiallr@gmail.com
package routers

import (
	"github.com/xgggh/test/api/controllers"

	"github.com/astaxie/beego"
)

func init() {
	ns := beego.NewNamespace("/v1",

		beego.NSNamespace("/task",
			beego.NSInclude(
				&controllers.TaskController{},
			),
		),
		beego.NSNamespace("/user",
			beego.NSInclude(
				&controllers.UserController{},
			),
		),
	)
	beego.AddNamespace(ns)
}
